package com.rivulet.doj_backend.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
public class User {

    private Integer user_id;
    //用户id

    private String username;
    //用户名即用户账号

    private String password;
    //用户密码

    private Integer identity;
    //身份，1代表用户，0代表管理员
    public User() {
    }
    public User(String username, String password) {
        this.username = username;
        this.password = password;
    }
    public User(String username, String password, Integer identity) {
        this.username = username;
        this.password = password;
        this.identity = identity;
    }
    public User(Integer user_id, String username, String password, Integer identity) {
        this.user_id = user_id;
        this.username = username;
        this.password = password;
        this.identity = identity;
    }
}
